package cfengMiddleware.server;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author Cfeng
 * @date 2022/9/11
 */

@SpringBootApplication
@MapperScan("cfengMiddleware.model.mapper")  //model的依赖是加入了的，所以可以扫描到其位置
public class MiddleApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return super.configure(builder);
    }

    public static void main(String[] args) {
        SpringApplication.run(MiddleApplication.class,args);
    }
}
